package com.example.victory.swagger.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.validation.annotation.Validated;

/**
 * 返回对象
 */
@ApiModel(description = "返回对象")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class BargainEntrust   {
  @JsonProperty("name")
  private String name = null;

  @JsonProperty("code")
  private String code = null;

  @JsonProperty("bargainTotal")
  private String bargainTotal = null;

  @JsonProperty("bargainPrice")
  private String bargainPrice = null;

  @JsonProperty("bargainMoney")
  private String bargainMoney = null;

  @JsonProperty("type")
  private String type = null;

  public BargainEntrust name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 昵称
   * @return name
  **/
  @ApiModelProperty(example = "投顾", value = "昵称")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public BargainEntrust code(String code) {
    this.code = code;
    return this;
  }

  /**
   * 编码
   * @return code
  **/
  @ApiModelProperty(example = "003", value = "编码")


  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public BargainEntrust bargainTotal(String bargainTotal) {
    this.bargainTotal = bargainTotal;
    return this;
  }

  /**
   * 成交数量
   * @return bargainTotal
  **/
  @ApiModelProperty(example = "111", value = "成交数量")


  public String getBargainTotal() {
    return bargainTotal;
  }

  public void setBargainTotal(String bargainTotal) {
    this.bargainTotal = bargainTotal;
  }

  public BargainEntrust bargainPrice(String bargainPrice) {
    this.bargainPrice = bargainPrice;
    return this;
  }

  /**
   * 成交价格
   * @return bargainPrice
  **/
  @ApiModelProperty(example = "111", value = "成交价格")


  public String getBargainPrice() {
    return bargainPrice;
  }

  public void setBargainPrice(String bargainPrice) {
    this.bargainPrice = bargainPrice;
  }

  public BargainEntrust bargainMoney(String bargainMoney) {
    this.bargainMoney = bargainMoney;
    return this;
  }

  /**
   * 成交金额
   * @return bargainMoney
  **/
  @ApiModelProperty(example = "111", value = "成交金额")


  public String getBargainMoney() {
    return bargainMoney;
  }

  public void setBargainMoney(String bargainMoney) {
    this.bargainMoney = bargainMoney;
  }

  public BargainEntrust type(String type) {
    this.type = type;
    return this;
  }

  /**
   * 操作方向 中文返回
   * @return type
  **/
  @ApiModelProperty(example = "买入", value = "操作方向 中文返回")


  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BargainEntrust bargainEntrust = (BargainEntrust) o;
    return Objects.equals(this.name, bargainEntrust.name) &&
        Objects.equals(this.code, bargainEntrust.code) &&
        Objects.equals(this.bargainTotal, bargainEntrust.bargainTotal) &&
        Objects.equals(this.bargainPrice, bargainEntrust.bargainPrice) &&
        Objects.equals(this.bargainMoney, bargainEntrust.bargainMoney) &&
        Objects.equals(this.type, bargainEntrust.type);
  }

  @Override
  public int hashCode() {
    return Objects.hash(name, code, bargainTotal, bargainPrice, bargainMoney, type);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BargainEntrust {\n");
    
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    code: ").append(toIndentedString(code)).append("\n");
    sb.append("    bargainTotal: ").append(toIndentedString(bargainTotal)).append("\n");
    sb.append("    bargainPrice: ").append(toIndentedString(bargainPrice)).append("\n");
    sb.append("    bargainMoney: ").append(toIndentedString(bargainMoney)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

